package com.app.mapper;


import com.app.model.TrainEnrollModel;
import com.app.model.VideoTrainModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
@Mapper
public interface VideoTrainMapper extends BaseMapper<VideoTrainModel> {

    int insert(VideoTrainModel model);
    int update(VideoTrainModel model);
    List<VideoTrainModel> getListByModel(VideoTrainModel model);
    int getCountByModel(VideoTrainModel model);
    VideoTrainModel getVideoById(int id);//根据id查询视频

    int countAll(VideoTrainModel mdoel);

    List<VideoTrainModel> bakGetListByModel(VideoTrainModel model);

}
